/**
 * Created by OXOYO on 2018/3/26.
 *
 * 自定义组件
 */

// import Vue from 'vue'
import iview from 'iview'
import 'iview/dist/styles/iview.css'

// 导入自定义组件
// import CustomInput from './components/Input.vue'
import CustomText from './components/Text'
import CustomImage from './components/Image'
import CustomHealthEval from './components/HealthEval' // 健康度
import CustomForecast from './components/Forecast' // 预测
const {
  CustomForecastReal, // 实时预测
  CustomForecastHistory, // 历史预测
} = CustomForecast

import CustomMonitor from './components/Monitor' // 监测
const {
  CustomMonitorSimilarity, // 相似度监测
  CustomMonitorSurvey // 测点监测
} = CustomMonitor

import CustomThermogram from './components/Thermogram' // 相关热力图


export const CustomComponents = {
  CustomText,
  CustomImage,
  CustomHealthEval,
  CustomForecastReal,
  CustomForecastHistory,
  CustomMonitorSimilarity,
  CustomMonitorSurvey,

  CustomThermogram,
}

// 遍历组件数据
const iviewComponentList = {}
Object.keys(iview).map(key => {
  let item = iview[key]
  if (typeof item === 'object' && item instanceof Object) {
    iviewComponentList[key] = item
  }
})
// 合并
const componentList = Object.assign({}, CustomComponents, iviewComponentList)
console.log('componentList', componentList)
export default componentList

